package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 推荐\精选
 * </p>
 *
 * @author yangbo
 * @since 2019-07-09
 */
public class Recommend extends Model<Recommend> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 推荐标题
     */
	private String title;
    /**
     * 位置id
     */
	private Integer locationId;
    /**
     * 关联专辑id
     */
	private Integer cateId;
    /**
     * 图片地址
     */
	private String picPath;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getLocationId() {
		return locationId;
	}

	public void setLocationId(Integer locationId) {
		this.locationId = locationId;
	}

	public Integer getCateId() {
		return cateId;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Recommend{" +
			"id=" + id +
			", title=" + title +
			", locationId=" + locationId +
			", cateId=" + cateId +
			", picPath=" + picPath +
			"}";
	}
}
